﻿@model QRCode2.Models.HomeForSale

@{
    ViewBag.Title = "Details";
}

<fieldset>
    <legend>HomeForSale</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Description)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Description)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Address)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Address)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.StartDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.StartDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.EndDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.EndDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.DaysOnMarket)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DaysOnMarket)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Heating)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Heating)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.YearBuilt)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.YearBuilt)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.AskingPrice)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AskingPrice)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.GeoLocation)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.GeoLocation)
    </div>

    <br />
        <img src= "@Url.Content(ViewBag.MainPicture)" alt="MainPicture" />
    <br />

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Picture1Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Picture1Name)
    </div>

    <br />
        <img src= "@Url.Content(ViewBag.Picture1)" alt="Picture1" />
    <br />

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Picture2Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Picture2Name)
    </div>

    <br />
        <img src= "@Url.Content(ViewBag.Picture2)" alt="Picture2" />
    <br />

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Picture3Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Picture3Name)
    </div>

    <br />
        <img src= "@Url.Content(ViewBag.Picture3)" alt="Picture3" />
    <br />

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Picture4Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Picture4Name)
    </div>

    <br />
        <img src= "@Url.Content(ViewBag.Picture4)" alt="Picture4" />
    <br />

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Picture5Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Picture5Name)
    </div>

    <br />
        <img src= "@Url.Content(ViewBag.Picture5)" alt="Picture5" />
    <br />

     @if (ViewBag.Movie != "")
        {
            <a href= "@Url.Content(ViewBag.Movie)"> Movie </a>
            <br /> 
        }

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Active)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Active)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.AgentUserName }) |
    @Html.ActionLink("Back to List", "Index")
</p>
